﻿
using Microsoft.EntityFrameworkCore;

using System;

using System.Linq;

using Xc.DataAccess.DataBases.Core.Models;

namespace Xc.DataAccess.DataBases.Logs.Services
{
    /// <summary>
    /// 数据库日志构建器
    /// </summary>
    public class DbLogBuilder : IDbModelCreater
    {
        public void Create(ModelBuilder modelBuilder)
        {
            var log = modelBuilder.Entity<Log>();
            log.Property(p => p.Category).HasMaxLength(200);
        }
    }
}
